package com.bdmc.work.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdmc.common.annotation.DataColumn;
import com.bdmc.common.annotation.DataPermission;
import com.bdmc.common.core.mybatisplus.core.BaseMapperPlus;
import com.bdmc.work.domain.WorkOrder;
import com.bdmc.work.domain.bo.WorkOrderBo;
import com.bdmc.work.domain.vo.WorkOrderSumVo;
import com.bdmc.work.domain.vo.WorkOrderVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 清运任务工单Mapper接口
 *
 * @author bdmc
 * @date 2022-03-30
 */
public interface WorkOrderMapper extends BaseMapperPlus<WorkOrder> {

    @DataPermission({@DataColumn(value = "d.dept_id")})
    Page<WorkOrderVo> mySelectPage(@Param("page") Page<WorkOrder> page, @Param("param") WorkOrderBo bo);

    @DataPermission({@DataColumn(value = "d.dept_id")})
    List<WorkOrderVo> mySelectPage(@Param("param") WorkOrderBo bo);

    @DataPermission({@DataColumn(value = "d.dept_id")})
    Page<WorkOrderSumVo> sumSelectPage(@Param("page") Page<WorkOrder> page, @Param("param") WorkOrderBo bo);

    @DataPermission({@DataColumn(value = "d.dept_id")})
    List<WorkOrderSumVo> sumSelectPage(@Param("param") WorkOrderBo bo);
}
